Optimal. Leaf size=161 \[ -\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}-\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )-\frac {b \left (20 c^2 d+9 e\right ) x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{120 c^4 \sqrt {c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 161, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 7, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.368, Rules used = {14, 5346, 12,
470, 327, 223, 212} \begin {gather*} \frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )-\frac {b e x^4 \sqrt {c^2 x^2-1}}{20 c \sqrt {c^2 x^2}}-\frac {b x \left (20 c^2 d+9 e\right ) \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{120 c^4 \sqrt {c^2 x^2}}-\frac {b x^2 \sqrt {c^2 x^2-1} \left (20 c^2 d+9 e\right )}{120 c^3 \sqrt {c^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 212
Rule 223
Rule 327
Rule 470
Rule 5346
Rubi steps
\begin {align*} \int x^2 \left (d+e x^2\right ) \left (a+b \sec ^{-1}(c x)\right ) \, dx &=\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c x) \int \frac {x^2 \left (5 d+3 e x^2\right )}{15 \sqrt {-1+c^2 x^2}} \, dx}{\sqrt {c^2 x^2}}\\ &=\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c x) \int \frac {x^2 \left (5 d+3 e x^2\right )}{\sqrt {-1+c^2 x^2}} \, dx}{15 \sqrt {c^2 x^2}}\\ &=-\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )+\frac {\left (b c \left (-20 d-\frac {9 e}{c^2}\right ) x\right ) \int \frac {x^2}{\sqrt {-1+c^2 x^2}} \, dx}{60 \sqrt {c^2 x^2}}\\ &=-\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}-\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )+\frac {\left (b \left (-20 d-\frac {9 e}{c^2}\right ) x\right ) \int \frac {1}{\sqrt {-1+c^2 x^2}} \, dx}{120 c \sqrt {c^2 x^2}}\\ &=-\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}-\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )+\frac {\left (b \left (-20 d-\frac {9 e}{c^2}\right ) x\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\frac {x}{\sqrt {-1+c^2 x^2}}\right )}{120 c \sqrt {c^2 x^2}}\\ &=-\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}-\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \sec ^{-1}(c x)\right )-\frac {b \left (20 c^2 d+9 e\right ) x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{120 c^4 \sqrt {c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 123, normalized size = 0.76 \begin {gather*} \frac {c^2 x^2 \left (8 a c^3 x \left (5 d+3 e x^2\right )-b \sqrt {1-\frac {1}{c^2 x^2}} \left (9 e+c^2 \left (20 d+6 e x^2\right )\right )\right )+8 b c^5 x^3 \left (5 d+3 e x^2\right ) \sec ^{-1}(c x)-b \left (20 c^2 d+9 e\right ) \log \left (\left (1+\sqrt {1-\frac {1}{c^2 x^2}}\right ) x\right )}{120 c^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 267, normalized size = 1.66
method | result | size |
derivativedivides | \(\frac {\frac {a \left (\frac {1}{3} d \,c^{5} x^{3}+\frac {1}{5} e \,c^{5} x^{5}\right )}{c^{2}}+\frac {b \,\mathrm {arcsec}\left (c x \right ) d \,c^{3} x^{3}}{3}+\frac {b \,c^{3} \mathrm {arcsec}\left (c x \right ) e \,x^{5}}{5}-\frac {b \left (c^{2} x^{2}-1\right ) d}{6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \left (c^{2} x^{2}-1\right ) x^{2} e}{20 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \sqrt {c^{2} x^{2}-1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c x}-\frac {3 b \left (c^{2} x^{2}-1\right ) e}{40 c^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {3 b \sqrt {c^{2} x^{2}-1}\, e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{40 c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}}{c^{3}}\) | \(267\) |
default | \(\frac {\frac {a \left (\frac {1}{3} d \,c^{5} x^{3}+\frac {1}{5} e \,c^{5} x^{5}\right )}{c^{2}}+\frac {b \,\mathrm {arcsec}\left (c x \right ) d \,c^{3} x^{3}}{3}+\frac {b \,c^{3} \mathrm {arcsec}\left (c x \right ) e \,x^{5}}{5}-\frac {b \left (c^{2} x^{2}-1\right ) d}{6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \left (c^{2} x^{2}-1\right ) x^{2} e}{20 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \sqrt {c^{2} x^{2}-1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c x}-\frac {3 b \left (c^{2} x^{2}-1\right ) e}{40 c^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {3 b \sqrt {c^{2} x^{2}-1}\, e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{40 c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}}{c^{3}}\) | \(267\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 234, normalized size = 1.45 \begin {gather*} \frac {1}{5} \, a x^{5} e + \frac {1}{3} \, a d x^{3} + \frac {1}{12} \, {\left (4 \, x^{3} \operatorname {arcsec}\left (c x\right ) - \frac {\frac {2 \, \sqrt {-\frac {1}{c^{2} x^{2}} + 1}}{c^{2} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} + c^{2}} + \frac {\log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{2}} - \frac {\log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 1\right )}{c^{2}}}{c}\right )} b d + \frac {1}{80} \, {\left (16 \, x^{5} \operatorname {arcsec}\left (c x\right ) + \frac {\frac {2 \, {\left (3 \, {\left (-\frac {1}{c^{2} x^{2}} + 1\right )}^{\frac {3}{2}} - 5 \, \sqrt {-\frac {1}{c^{2} x^{2}} + 1}\right )}}{c^{4} {\left (\frac {1}{c^{2} x^{2}} - 1\right )}^{2} + 2 \, c^{4} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} + c^{4}} - \frac {3 \, \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{4}} + \frac {3 \, \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 1\right )}{c^{4}}}{c}\right )} b e \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.05, size = 177, normalized size = 1.10 \begin {gather*} \frac {24 \, a c^{5} x^{5} e + 40 \, a c^{5} d x^{3} + 8 \, {\left (5 \, b c^{5} d x^{3} - 5 \, b c^{5} d + 3 \, {\left (b c^{5} x^{5} - b c^{5}\right )} e\right )} \operatorname {arcsec}\left (c x\right ) + 16 \, {\left (5 \, b c^{5} d + 3 \, b c^{5} e\right )} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (20 \, b c^{2} d + 9 \, b e\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) - {\left (20 \, b c^{3} d x + 3 \, {\left (2 \, b c^{3} x^{3} + 3 \, b c x\right )} e\right )} \sqrt {c^{2} x^{2} - 1}}{120 \, c^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 5.53, size = 294, normalized size = 1.83 \begin {gather*} \frac {a d x^{3}}{3} + \frac {a e x^{5}}{5} + \frac {b d x^{3} \operatorname {asec}{\left (c x \right )}}{3} + \frac {b e x^{5} \operatorname {asec}{\left (c x \right )}}{5} - \frac {b d \left (\begin {cases} \frac {x \sqrt {c^{2} x^{2} - 1}}{2 c} + \frac {\operatorname {acosh}{\left (c x \right )}}{2 c^{2}} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- \frac {i c x^{3}}{2 \sqrt {- c^{2} x^{2} + 1}} + \frac {i x}{2 c \sqrt {- c^{2} x^{2} + 1}} - \frac {i \operatorname {asin}{\left (c x \right )}}{2 c^{2}} & \text {otherwise} \end {cases}\right )}{3 c} - \frac {b e \left (\begin {cases} \frac {c x^{5}}{4 \sqrt {c^{2} x^{2} - 1}} + \frac {x^{3}}{8 c \sqrt {c^{2} x^{2} - 1}} - \frac {3 x}{8 c^{3} \sqrt {c^{2} x^{2} - 1}} + \frac {3 \operatorname {acosh}{\left (c x \right )}}{8 c^{4}} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- \frac {i c x^{5}}{4 \sqrt {- c^{2} x^{2} + 1}} - \frac {i x^{3}}{8 c \sqrt {- c^{2} x^{2} + 1}} + \frac {3 i x}{8 c^{3} \sqrt {- c^{2} x^{2} + 1}} - \frac {3 i \operatorname {asin}{\left (c x \right )}}{8 c^{4}} & \text {otherwise} \end {cases}\right )}{5 c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 9792 vs.
\(2 (139) = 278\).
time = 1.98, size = 9792, normalized size = 60.82 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^2\,\left (e\,x^2+d\right )\,\left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________